/**
 * http://usejsdoc.org/
 */
var pool=require("./ConnectDataBase");//引入数据库连接
/**
 * 
 * @param dy_id
 * @param u_id
 * @function 通过dy_id, u_id来查找所有动态没有任何限制
 * @returns
 */
function searchAllDynamic (param,cb){
	pool.getConnection(function(err,conn){
		var sql="SELECT dy_id,u_id,u_nickname,u_head,dy_time,dy_info,pic1,pic2,pic3,pic4,pic5,pic6,pic7,pic8,pic9 FROM dynamic_user_pic";
		var data;
		conn.query(sql,data,function(err,rows){
			cb(err,rows);
			conn.release();
		})
	})
}


module.exports = {
		searchAllDynamic:searchAllDynamic
}